#!/usr/bin/env python
# -*- coding:utf-8 -*- 
# @Time    : 2018/11/25 10:56
# @Author  : liujiantao
# @Site    : 
# @File    : model_result_analysis.py
# @Software: PyCharm
from tiancheng.base.base_helper import *
black_list = []
res01 = pd.read_csv(sub_base_path+"blending_Logistic_0.6667198766965121_.csv")
black_list.extend(res01[res01[tag_hd.Tag]<0.5][tag_hd.UID].tolist())
res02 = pd.read_csv(sub_base_path+"blending_lgbm_0.9072997650348977_.csv")
black_list.extend(res02[res02[tag_hd.Tag]<0.5][tag_hd.UID].tolist())
res03 = pd.read_csv(sub_base_path+"blending_Logistic_0.7973128798771321_.csv")
black_list.extend(res03[res03[tag_hd.Tag]<0.5][tag_hd.UID].tolist())
res04 = pd.read_csv(sub_base_path+"lightgbm_train02_0.7747466874512859.csv")
black_list.extend(res04[res04[tag_hd.Tag]<0.5][tag_hd.UID].tolist())
black_list = list(set(black_list))
res01[tag_hd.Tag].map(lambda x:random.uniform(0,0.4) if x in black_list else x)

res01.to_csv(sub_base_path+"bleding_res01.csv",index=False)
print(123)